package club.blueline.userapi.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class RecruitInfoDo {

    private Integer id;
    private String name;
    private Integer gender;
    private String contact;
    private String qq;
    private String email;
    private String degree;
    private String school;
    private String admissionYear;
    private Integer admitted;

    public RecruitInfoDo(PostRecruitDto dto) {
        this.name = dto.getName();
        this.gender = dto.getGender();
        this.contact = dto.getContact();
        this.qq = dto.getQq();
        this.email = dto.getEmail();
        this.degree = dto.getDegree();
        this.school = dto.getSchool();
        this.admissionYear = dto.getAdmissionYear();
        this.admitted = 0;
    }

}
